package com.ht.api.request.customer;

import cn.hutool.json.JSONObject;
import com.ht.api.bean.AjaxResult;
import com.ht.api.bean.LoginBean;
import com.ht.api.call.func.IFunctionCall;
import com.ht.api.db.Entity;
import com.ht.api.db.annotate.*;
import com.ht.api.db.bean.DataResult;
import com.ht.api.db.bean.SessionBean;
import com.ht.api.db.enums.Param;
import com.ht.api.db.request.IHandleRequest;
import com.ht.api.db.util.HtUtil;
import com.ht.api.service.CustomerService;
import com.ht.api.util.CallTestUtil;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@FuncId("1904808708634972160")
@FuncParams({
        @FuncParam(name = "oneid", code = "oneid", value = "1914307984490631168"),
})

@FuncCall
@FuncName("客户档案查询")
public class CustomerArchivesFunctionCall implements IHandleRequest {

    @Override
    public void execute(SessionBean me, JSONObject param, DataResult result) {
        Entity user = CustomerService.getCustomerArchives(me.getDataSource(), param);

        result.set(user);
    }

    public static void main(String[] args) {

		JSONObject result = CallTestUtil.autoTest(new Object(){}.getClass().getEnclosingClass().getSimpleName());
//		System.err.println(result.toStringPretty());
    }


}
